<?php


namespace app\common\validate;


use think\Validate;

class Teacher extends Validate
{
    protected $rule = [
        'name' => 'require|max:64',
        'email'=> 'email',
    ];

    protected $message = [
        'name.require' => '名称必须',
        'email' => '邮箱出错',
    ];
}